﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Electronic_work_order.Model;

namespace Electronic_work_order.Interfacess.OA_application
{
    public class Sqlapplication : Iapplication
    {
        private readonly AppDbContext _context;

        public Sqlapplication(AppDbContext appDbContext)
        {
            _context = appDbContext;
        }

        //查询申请类型
        public IEnumerable<application> GetApplications()
        {
            return _context.applications.ToList();
        }
    }
}
